package com.atguigu.patterns.factory.factorymethod;

import com.atguigu.patterns.factory.result.Pizza;

public class Client {

	public static void main(String[] args) {
		Pizza pizza;
		String loc = "bj";
		if (loc.equals("bj")) {
			//创建北京口味的各种Pizza
			pizza = new BJPizzaFactory().createPizza("");
		} else {
			//创建伦敦口味的各种Pizza
			pizza = new LDPizzaFactory().createPizza("");
		}
			}

}
